package com.example.teachmvandroidchart.util

class Constant {
    companion object {
        var IP = "183.230.40.39"//"192.168.0.0"//mqtt连接ip oneNET为183.230.40.39
        var PORT = "6002"//"1883"//mqtt连接端口EMQ oneNET为6002
        var CONNECT_ID ="862715185" //"879660841"  //mqtt连接id  oneNET为设备id
        var CONNECT_NAME ="477505" //"486591"     //设置用户名。跟Client ID不同。用户名可以看做权限等级"  oneNET为产品ID
        var CONNECT_PAS = "123456"//"swj5525" //设置登录密码  oneNET为设备鉴权或apikey
        var CONNECT_FLAG = false  //连接标志 - 默认断开连接
        var AGAIN_CONNECT_FLAG = true //重连标志  是否开启重连
        var SUBSCRIBE_FLAG = false //订阅标志
        var SUBSCRIBE  = "ESP" //订阅主题
        var SEND_DATA = "" //发布的信息
        var RECEIVE_DATA = "" //接收的信息
        var RECEIVE_FLAG = false //接到消息标志
        var PHOTO = 0// 拍照or相册选择标志  1为拍照    2为相册
        var VOICE_RESULT = "" //语音识别结果
        var VOICE_FLAG = false //识别完成标志
        var DOOR_STATE = false //当前门状态
        var ENTERING = false //指纹录入状态
        var PACKAGE = false //下位机是否在线
    }
}